package com.example.chat2.domain;

import lombok.Data;
import lombok.Getter;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.Date;
import java.util.List;

@Data
@Table(name = "schoolchat")
public class TbUserinfo  {

    public void setUsername(String username) {
        this.username = username;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public void setPhoto(String photo) {
        this.photo = photo;
    }

    public void setNature(String nature) {
        this.nature = nature;
    }





    public void setCollage(String collage) {
        this.collage = collage;
    }


    @lombok.Setter
    @Id
    @Column(name ="id")
    private Integer id;
    @Column(name ="username")
    private String username;
    @Column(name ="password")
    private String password;
    @Column(name ="gender")
    private String gender;
    @Column(name ="age")
    private Integer age;
    @Column(name ="photo")
    private String photo;
    @Column(name ="nature")
    private String nature;
    @Column(name ="collage")
    private String collage;


}
